Skip to content

Feat: OpenAI API#8

Merged
DmitrySirakov merged 11 commits intovamplabAI:hybrid_reasoner_sgr_with_toolsfrom
EvilFreelancer:openai-api
Aug 29, 2025
Merged

Feat: OpenAI API#8
DmitrySirakov merged 11 commits intovamplabAI:hybrid_reasoner_sgr_with_toolsfrom
EvilFreelancer:openai-api

Conversation

@EvilFreelancer
Copy link
Copy Markdown
Member

@EvilFreelancer EvilFreelancer commented Aug 29, 2025

  • FastAPI-сервер совместимый с openai-клиентами
  • Добавил в конфиг опцию openai_proxy
  • Можно использовать как в режиме stream так и без него
  • Всё упаковал в докер
  • Документацию дополнил

entrypoint.sh Outdated

[ "x$APP_WORKERS" = "x" ] && export APP_WORKERS="1"
[ "x$APP_BIND" = "x" ] && export APP_BIND="0.0.0.0"
[ "x$APP_PORT" = "x" ] && export APP_PORT="8000"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

мб по дефолту сделать другой порт?
8000 занят вебом

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

На самом деле это не принципиально. Это же докер. 8000 — порт по умолчанию для программы Uvicorn

Copy link
Copy Markdown
Collaborator

@DmitrySirakov DmitrySirakov Aug 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

веб который в chainlit.
иначе нормально запустить api + web нельзя

api_server.py Outdated
uvicorn.run(
"api_server:app",
host="0.0.0.0",
port=8000,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

и здесь тоже

@DmitrySirakov DmitrySirakov merged commit a28c541 into vamplabAI:hybrid_reasoner_sgr_with_tools Aug 29, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants